package com.leef.oauth;

import android.app.Application;
import android.content.SharedPreferences;

/**
 * Created by IWALL on 2017/3/14.
 * APP
 */

public class App extends Application {

    public static volatile SharedPreferences profile;
    public static volatile App app;

    public static App getApplication() {
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        profile = getSharedPreferences("profile", MODE_PRIVATE);
    }

    public SharedPreferences getSharePreference() {
        return profile;
    }

}
